package com.neuedu.dao;

import java.util.List;

public interface BaseDao<T> {


    //查询集合 String sql, Object[] args
    public List<T> queryList(String sql, Object... args);

    //查询一个 String sql, Object[] args
    public   T queryOne(String sql, Object... args);

    //根据主键查询  Integer id
    public T queryOne(Integer id);


    //查询条数 String sql, Object[] args
    //reutrn Integer
    public Integer count(String sql, Object[] args);

    //更新   User
    public boolean update(String sql, Object[] args);



}
